<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class SafetyAgreement
 *
 * @property int $id
 * @property int $operator_id
 * @property string $operator_name
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @property string|null $deleted_at
 * @property string|null $files
 *
 * @package App\Models
 */
class SafetyAgreement extends Model
{
	use SoftDeletes;
	protected $table = 'safety_agreement';

	protected $casts = [
		'operator_id' => 'int'
	];

	protected $fillable = [
		'operator_id',
		'operator_name',
		'files',
		'file_name',
	];
    public function exhibitor_information()
    {
        return $this->belongsTo(ExhibitorInformation::class, 'operator_id', 'id');
    }
}
